package top.abrsm.util;

/**
 * @Author: Wuzh
 * @Description:
 * @Date Created in 21:44 2020/8/5
 * @return
 */
public enum StateEnum {

    SUCCESS ( "000000", "执行成功" ),
    REQUEST_PARAM_EXCE ( "0000001", "请求参数为空异常" ),
    RESULT_NULL_EXCE ( "000002", "结果为空异常" ),
    PRIMARY_NULL_EXCE ( "000003", "主键为空异常" ),
    INSERT_EXCE ( "000004", "插入失败异常" ),
    DELETE_EXCE ( "000005", "删除失败异常" ),
    UPDATE_EXCE ( "000006", "修改失败异常" ),
    NOT_UNIQUE_EXCE ( "000008", "修改失败异常" ),
    MOBILE_NOT_UNIQUE ( "000009", "手机不唯一异常" ),
    FILE_NULL_EXCE ( "000100", "文件为空异常" ),
    INTEGRAL_NO_ENOUGH ( "000101", "剩余积分不够" ),
    TOP_NUMBER_EXCE ( "000102", "置顶帖子数过多" ),
    NOT_FOLLOW_EXCE ( "000103", "不能关注自己" ),
    SENSITIVE_EXCE ( "000104", "敏感帖子" ),
    PAY_FAIL ( "000201", "支付失败" ),
    VERIFICATION_EXCE ( "000301", "验证码异常" ),
    LACK_NUMBER_EXCE ( "000303", "库存不足" ),
    REQUEST_POWER_EXCE ( "000403", "无请求权限" ),
    NULL_POINT_EXEC ( "000444", "空指针" ),
    SESSION_EXPIRE ( "000600", "连接过期" ),
    ERROR ( "999999", "系统错误" );

    private String code;
    private String message;

    StateEnum ( String code, String message ) {
        this.code = code;
        this.message = message;
    }

    public String getCode () {
        return code;
    }

    public void setCode ( String code ) {
        this.code = code;
    }

    public String getMessage () {
        return message;
    }

    public void setMessage ( String message ) {
        this.message = message;
    }
}
